/**
 * Class: ParticleSource
 *
 * Purpose: 
 *
 * Created: Jan 23, 2010 @ 11:56:37 PM
 * @author Ken Scott
 */
package org.openfantasia.ps.fireworks;

import org.openfantasia.ps.particle.DefaultParticleFactory;
import org.openfantasia.ps.particle.Particle;
import org.openfantasia.ps.actor.Actor;
import org.openfantasia.ui.PFrame;

public class ExploderFactory extends DefaultParticleFactory {

	protected int parts = 200;

	protected double magnitude = 50;

	protected double lifespan = 2;


	public ExploderFactory(PFrame frame, int parts, double magnitude, double lifespan, Actor exploderActor) {
		super(frame, exploderActor);

		this.parts = parts;
		this.magnitude = magnitude;
		this.lifespan = lifespan;
	}


	public Particle createParticle() {
		return new Exploder(parts, magnitude, lifespan);
	}
}